package com.example.demo.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Liunh
 */
@Component
@Data
public class AppProperties {

    @Value(value = "${app.file.uri:/usr/local/app/files}")
    private String fileUri;

    @Value(value = "${server.servlet.context-path:/}")
    private String contextPath;

    @Value(value = "${server.port:8060}")
    private Integer port;

    @Value(value = "${app.cluster.isCluster:false}")
    private Boolean isCluster;

    @Value(value = "${app.cluster.hosts:127.0.0.1:8080}")
    private String hosts;

    @Value(value = "${app.cluster.password:gISXjXRZD7pWdljJIFqXUQ==}")
    private String clusterPassword;

    @Value(value = "${app.cluster.secretKey:Asd@123456!}")
    private String clusterSecretKey;

}
